import statics from "../statics.js";

export default matchFrequency;

function matchFrequency(value) {
  let matched = false;
  for (let i = 0; i < statics.frequencies.length; i++) {
    if (statics.frequencies[i].seat == value) {
      this.form.frequency = statics.frequencies[i].value;
      matched = true;
    }
  }
  if (!matched && value != "") {
    this.form.frequency = "其他";
  }
}